package MethodParameter.MethodParameter03;

public class MP03 {
    public static void main(String[] args) {
        Person p = new Person();
        p.m_Age = 100;
        p.m_Name = "John";

        B b = new B();
        b.test02(p);

        System.out.println(p.m_Age + p.m_Name);
    }
}
class B{
    void test02(Person p) {
        p = new Person();
        p.m_Name = "Lyly";
        p.m_Age = 200;
    }
}

class Person {
    int m_Age;
    String m_Name;
}
